#ifndef __TwFps_H__
#define __TwFps_H__

#include "TwD3DHeaders.h"
#include "TwDefines.h"

class TwFps
{
public:
	TwFps();
	virtual ~TwFps();

	void update(TimeValue t);
	float getFps() const;

protected:
	TimeValue				mLastTime;
	TimeValue				mFrameCount;
	TimeValue				mSampleRate;

	float					mFps;
};

#endif //__TwFps_H__